# -*- coding: utf-8 -*-
"""
@Auth ： laichenying
@File ：file_fixture.py
@IDE ：PyCharm

"""

import json
import hashlib
import time

import pytest
from common.http_requests import HttpRequests
from config.url_config import URLConf




@pytest.fixture(scope='session')
def http():
    url = URLConf.TEST_API_URL.value
    http = HttpRequests(url)
    return http

@pytest.fixture()
def get_headers():
    headers = {'Content-Type': 'application/json',
               'Connection': 'keep-live'}
    return {'headers': headers}


@pytest.fixture()
def get_data():
    data = None
    return locals()


@pytest.fixture()
def data(get_data):
    return get_data.get('data')